/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.operation.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nai365.nart.common.security.annotation.Inner;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author linco
 * @date 2022-07-22 13:29:35
 */
@Data
@TableName("opt_recovery_detail")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class RecoveryDetail extends Model<RecoveryDetail> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键")
	private Long id;

	/**
	 * 用户Id
	 */
	@ApiModelProperty(value = "用户Id")
	private Long userId;

	/**
	 * 记录id
	 */
	@ApiModelProperty(value = "记录id")
	private Long recordId;

	/**
	 * sku id
	 */
	@ApiModelProperty(value = "sku id")
	private Long skuId;

	/**
	 * sku名称
	 */
	@ApiModelProperty(value = "sku名称")
	private String skuName;

	/**
	 * sku token
	 */
	@ApiModelProperty(value = "sku token")
	private String skuToken;

	/**
	 * sku图片
	 */
	@ApiModelProperty(value = "sku图片")
	private String skuImage;

	/**
	 * sku编号
	 */
	@ApiModelProperty(value = "sku编号")
	private String skuCode;

	/**
	 * 交易hash
	 */
	@ApiModelProperty(value = "交易hash")
	private String txHash;

	/**
	 * 状态[0:正在上链中,1:已完成]
	 */
	@ApiModelProperty(value = "状态[0:正在上链中,1:已完成]")
	private Integer status;

	/**
	 * spuId
	 */
	@ApiModelProperty(value = "spuId")
	private Long spuId;

	/**
	 * 拥有者id
	 */
	@JsonIgnore
	private Long ownerId;
	/**
	 * 拥有者地址
	 */
	@JsonIgnore
	private String ownerAddress;
	/**
	 * 回收地址
	 */
	@JsonIgnore
	private String recoveryAddress;

	/**
	 * 回收价格
	 */
	@ApiModelProperty(value = "回收金额")
	private BigDecimal recoveryAmount;


}
